<?php
	header("Content-type:text/html;charset=utf-8");
	require_once(dirname(__FILE__).'/'."../Model/StaffModel.php");	
	require_once(dirname(__FILE__).'/'."../../basic/Controller.php");

	class StaffController extends Controller{

		function __construct(){
			parent::__construct();
		}

		function staff_account(){
			//include "staff/staff_account.php";
			$id = $_GET['id'];
			$model=new StaffModel();
			 $data=$model->staff_account($id);
			$this->assgin('staff',$data);
 			$this->display();
		}

		function staff_edit(){
			$id = $_GET['id'];
			$model=new StaffModel();
			 $data=$model->staff_edit($id);
			$this->assgin('staff',$data);
 			$this->display();
		}

		function staff_update(){
			$data=$_POST;
			$model=new StaffModel();
			$result=$model->staff_update($data);
			$this->assgin('staff',$result);
			$this->display();

		}

		function staff_apply(){
			$model=new StaffModel;
			$this->display();
		}

		function Dostaff_apply(){
			$data=$_POST;
			$model=new StaffModel();
			$result=$model->Dostaff_apply($data);
			$this->display();
		}
	}
?>